Scenario #4307: Adjust Coop Assets After Limitation Period

Properties

Required

Given

name value
memberNumber M-3101000
reference cancel 2024-01-15
valueForLimitation 128
comment adjust coop
transactionDate 2024-02-15

Find membershipUuid

HTTP GET "/api/hs/office/memberships/M-3101000" \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }`
=> status: 200 OK 
{
  "uuid" : "a05b3e87-6a11-4096-9fba-ae7da4271ee3", // Membership: M-3101000 - Test AG
  "partner" : {
    "uuid" : "215088cb-041a-4cc6-8657-7e949cf8dd5f", // Partner: P-31010 - Test AG
    "partnerNumber" : "P-31010",
    "partnerRel" : {
      "uuid" : "9c94cdf2-a746-4438-af53-664b87483a65", // partnerRelationUuid
      "anchor" : {
        "uuid" : "c43fc218-ae0e-4d6d-afc9-528d9861c2eb", // Person: Hostsharing eG
        "personType" : "LEGAL_PERSON",
        "tradeName" : "Hostsharing eG",
        "salutation" : null,
        "title" : null,
        "givenName" : null,
        "familyName" : null
      },
      "holder" : {
        "uuid" : "efe3662a-02d9-4fa9-a4f0-29dfd893fd78", // Person: Test AG
        "personType" : "LEGAL_PERSON",
        "tradeName" : "Test AG",
        "salutation" : null,
        "title" : null,
        "givenName" : null,
        "familyName" : null
      },
      "type" : "PARTNER",
      "mark" : null,
      "contact" : {
        "uuid" : "7e8be3df-3e34-4548-8b35-d630a30bfd4a", // Contact: Test AG - China
        "caption" : "Test AG - China",
        "postalAddress" : {
          "country" : "China",
          "province" : "Guangdong Province",
          "city" : "Dongguan City",
          "street" : "No.2 Commercial Second Street",
          "district" : "Niushan Wei Wu",
          "department" : "Executive Board",
          "building" : "Thi Chi Koh Building"
        },
        "emailAddresses" : {
          "main" : "norden@test-ag.example.org"
        },
        "phoneNumbers" : {
          "phone" : "++15 999 654321"
        }
      }
    },
    "details" : {
      "uuid" : "06e11b1f-3c8c-464e-83e8-a9f761b853d3",
      "registrationOffice" : "Registergericht Hamburg",
      "registrationNumber" : "1234567",
      "birthName" : null,
      "birthPlace" : null,
      "birthday" : null,
      "dateOfDeath" : null
    }
  },
  "mainDebitor" : null,
  "memberNumber" : "M-3101000",
  "memberNumberSuffix" : "00",
  "validFrom" : "2020-10-15",
  "validTo" : "2023-12-31",
  "status" : "CANCELLED",
  "membershipFeeBillable" : true
}

Create the Coop-Assets-LIMITATION Transaction

HTTP POST "/api/hs/office/coopassetstransactions" \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }` \
  <<EOF
{
  "membership.uuid" : "a05b3e87-6a11-4096-9fba-ae7da4271ee3", // Membership: M-3101000 - Test AG
  "transactionType" : "LIMITATION",
  "reference" : "cancel 2024-01-15",
  "assetValue" : "-128",
  "comment" : "adjust coop ",
  "valueDate" : "2024-02-15"
}
EOF
=> status: 201 CREATED 8c9242cd-651c-43ec-a2c5-62ef1b356d11

Verify Coop-Assets LIMITATION-Transaction

HTTP GET "/api/hs/office/coopassetstransactions/8c9242cd-651c-43ec-a2c5-62ef1b356d11" \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }`
=> status: 200 OK 
{
  "uuid" : "8c9242cd-651c-43ec-a2c5-62ef1b356d11",
  "membership.uuid" : "a05b3e87-6a11-4096-9fba-ae7da4271ee3", // Membership: M-3101000 - Test AG
  "membership.memberNumber" : "M-3101000",
  "transactionType" : "LIMITATION",
  "assetValue" : -128,
  "valueDate" : "2024-02-15",
  "reference" : "cancel 2024-01-15",
  "comment" : "adjust coop ",
  "adoptionAssetTx" : null,
  "transferAssetTx" : null,
  "revertedAssetTx" : null,
  "reversalAssetTx" : null
}

generated on 2026-08-10 04:42:27 for branch HEAD